SendbirdLive

object SendbirdLive

A singleton class that serves as the basis for all functionalities in Sendbird Live. This class can be initialized with an application ID and provides methods to authenticate, create, and retrieve a live event object.

Since

1.0.0

Functions

Link copied to clipboard
fun authenticate(params: AuthenticateParams, handler: AuthenticateHandler?)

Authenticates a user with the user ID and access token to connect to Sendbird server.

Link copied to clipboard
fun createLiveEvent(params: LiveEventCreateParams, handler: LiveEventHandler?)

Creates a live event.

Link copied to clipboard

Creates a query for a list of all live events. A list of live events in a specific state can be queried by specifying a state in LiveEventListQuery.Params.

Link copied to clipboard
fun deauthenticate(handler: CompletionHandler?)

Deauthenticates a user to disconnect from Sendbird server.

Link copied to clipboard
fun getCachedLiveEvent(liveEventId: String): LiveEvent?

Returns a cached live event by live event id.

Link copied to clipboard
fun getLiveEvent(liveEventId: String, handler: LiveEventHandler?)

Returns a live event by its URL.

Link copied to clipboard
fun init(params: InitParams, handler: InitResultHandler)

Initializes Sendbird Live SDK with the app ID of a Sendbird application.

Link copied to clipboard
fun setLoggerLevel(level: LogLevel)

Sets logger level.

Link copied to clipboard
fun setThreadOption(threadOption: ThreadOption, handler: Handler?)

Sets ThreadOption. Refer to ThreadOption. If you want to use ThreadOption.HANDLER, you should provide your handler as a parameter. Otherwise, set Handler parameter to null.

Properties

Link copied to clipboard
var applicationId: String
Link copied to clipboard
val currentUser: User?

Gets the current User.

Link copied to clipboard
const val VERSION: String